package com.sinochem.yunlian.ship.api.vo.uc;

import java.util.List;
import javax.validation.constraints.Pattern;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class AddCompanyUserForm {
	/**
	 * 姓名
	 */
	@Length(max = 15,min = 2, message = "请输入2~15个字符")
	@NotBlank(message = "用户名不能为空")
	private String userName;
	
	/**
	 * 手机号码
	 */
	@Pattern(regexp="^[1][2,3,4,5,6,7,8,9][0-9]{9}$",message="请输入正确的手机号")
	@NotBlank(message = "手机号不能为空")
	private String phone;
	
	/**
	 * 角色列表
	 */
	private List<String> roleCode;
    
}
